package com.order.itemcategoryproject.service.lmpl;

import com.order.itemcategoryproject.mapper.dArcCertificateMapper;
import com.order.itemcategoryproject.pojo.dArcCertificate;
import com.order.itemcategoryproject.service.dArcCertificateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 根据当前客户获取
 */
@Service
public class dArcCertificateServicelmpl implements dArcCertificateService {


    @Autowired
    private dArcCertificateMapper dArcCertificateMapper;

    /**
     * 根据当前客户以及商品编号获取当前客户以及当前商品编号可用证书
     * @param code
     * @return
     */
    @Override
    public List<dArcCertificate> selectAllUsefulCertificate(String code, String itemId, String cusName) {
        return dArcCertificateMapper.selectAllUsefulCertificate(code, itemId, cusName);
    }
}
